RCUBE_VERSION
RCUBE_VERSION = '1.5.2'
+-----------------------------------------------------------------------+ | This file is part of the Roundcube webmail client | | | | Copyright (C) The Roundcube Dev Team | | | | Licensed under the GNU General Public License version 3 or | | any later version with exceptions for skins & plugins. | | See the README file for a full license statement. | | | | CONTENTS: | | Roundcube Framework Initialization | +-----------------------------------------------------------------------+ | Author: Thomas Bruederli <roundcube@gmail.com> | | Author: Aleksander Machniak <alec@alec.pl> | +-----------------------------------------------------------------------+
get_offset_time(string $offset_str, int $factor = 1) : int
Create a unix timestamp with a specified offset from now.
string | $offset_str | String representation of the offset (e.g. 20min, 5h, 2days) |
int | $factor | Factor to multiply with the offset |
Unix timestamp
abbreviate_string(string $str, int $maxlength, string $placeholder = '...', bool $ending = false) : string
Truncate string if it is longer than the allowed length.
Replace the middle or the ending part of a string with a placeholder.
string | $str | Input string |
int | $maxlength | Max. length |
string | $placeholder | Replace removed chars with this |
bool | $ending | Set to True if string should be truncated from the end |
Abbreviated string
asciiwords(string $str, bool $css_id = false, string $replace_with = '') : string
Remove all non-ascii and non-word chars except ., -, _
string | $str | A string |
bool | $css_id | The result may be used as CSS identifier |
string | $replace_with | Replacement character |
Clean string